All Questions
7 questions
-2votes
1answer
121views
0votes
2answers
2kviews
Custom sorting function implemented as a jQuery plugin
I was asked to create a jQuery plugin that would sort homogeneous DOM elements in a given DOM container element. I came up with the idea to attach data-priority ...
0votes
1answer
10kviews
Sorting products by name or price
Lets preface this by saying that when it comes to javascript, I am a hack. I make what I need happen by cobbling together crappy, inefficient, redundant code. I want to get better. Recently I was ...
3votes
2answers
3kviews
Method for sorting numbers from user input
I have an input with numbers 1, 2, 3, 4 and I want to change the order of this number dynamically according to users input. You can find my code below and also a running example here. HTML ...
5votes
2answers
511views
How to verify if HTML table sort is stable or not?
I have implemented a HTML table sorting. I actually implemented a sort first using jQuery and then modified it based on the answer to this question for performance as I had done the same mistake. My ...
3votes
1answer
202views
Sorting possibly unstable and general jsfiddle/jquery problem
I have a simple sorting algorithm that I was told is possibly unstable. I'm wondering what in the sort is unstable. I have test cases written to test all fields with no issues. A secondary problem is ...
1vote
1answer
140views
Extracting Javascript functions
I have this jQuery click handler function that has three jobs: Set the time interval for the refresh rate Change the color on the clicked refresh rate selection Callback the tablesort functions to ...